
#include "readWriteFile.h"
#include "config.h"

#include <fstream>

const_int createFile(const_str fileName, const_str content) {
    ofstream file;
    file.open(fileName);

    if (!file.is_open()) return 1;
    
    file << content;
    file.close();
    return 0;
}

const_int deleteFile(const_ch* fileName) {
    if (!remove(fileName)) return 1;
    return 0;
}

